<?php
class formBuilder{


      function startForm($aAction,$someHTML,$fName) {
      		$bCode = "<form method='post'  name='$fName' id='$fName' ";
      		$bCode .= "action='$aAction' ";
      		//if ($func) $bCode .= "onSubmit='javascript:$func()' ";
      		$bCode .= ">\n";
      		$bCode .= $someHTML."\n";
         	return $bCode;
      }

      function submitButton($bTitle,$bStyle) {
   			$bCode = "<input type='submit' ";
   			$bCode .= "value='$bTitle' ";
   			$bCode .= "class='$bStyle' ";
   			if ($func) $bCode .= "onClick='javascript:$func()'";
   			$bCode .= "/>\n";
			return $bCode;
      }

      function hiddenInput($hName,$hValue,$bId=false) {
   			$bCode = "<input type='hidden' ";
   			$bCode .= "name='$hName' ";
   			$bCode .= "value='$hValue' ";
			if ($bId) $bCode .= "id='$bId' ";
   			$bCode .= "/>\n";
			return $bCode;
      }

      function endForm() {
               return "</form>\n";
      }

}

?>
